//
//  GTSubCategoryHeaderView.m
//  GiftTalk
//
//  Created by Wan on 16/4/8.
//  Copyright © 2016年 Wan. All rights reserved.
//

#import "GTSubCategoryHeaderView.h"
#import "GTCategory.h"

@interface GTSubCategoryHeaderView ()
@property (weak, nonatomic) IBOutlet UILabel *channelTitleLabel;
@end

@implementation GTSubCategoryHeaderView

- (void)awakeFromNib {
    // Initialization code
//    self.backgroundColor = GTRGBColor(244, 244, 244);
}

+ (instancetype)reuseViewWithCollectionView:(UICollectionView *)collectionView forIndexPath:(NSIndexPath *)indexPath {
    GTSubCategoryHeaderView *reuseView = [collectionView dequeueReusableSupplementaryViewOfKind:UICollectionElementKindSectionHeader withReuseIdentifier:reuseHeaderIdentifier forIndexPath:indexPath];

    return reuseView;
}

- (void)setCategory:(GTCategory *)category {
    _category = category;
    self.channelTitleLabel.text = category.name;
}

@end
